package com.ly.emp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.bean.R;
import com.ly.common.core.bean.dto.CommonBatchUpdateDTO;
import com.ly.emp.entity.HubTeamResultQuota;

/**
 * 考核结果-基础定额-service
 *
 * @author luoyun
 * @Date: 2025-05-20
 */
public interface IHubTeamResultQuotaService extends IService<HubTeamResultQuota> {

    /**
     * 查询-id
     */
    R getId(String id);

    /**
     * 列表
     *
     * @param entity
     * @return
     */
    R getList(HubTeamResultQuota entity);

    /**
     * 分页
     */
    R getPage(HubTeamResultQuota entity, Page<HubTeamResultQuota> page);

    /**
     * 新增
     */
    R add(HubTeamResultQuota entity);

    /**
     * 修改
     */
    R edit(HubTeamResultQuota entity);

    /**
     * 删除-id
     */
    R delete(String id);

    /**
     * 批量删除
     */
    R deleteBatch(String ids);

    /**
     * 批量新增或修改
     */
    R updateBatch(CommonBatchUpdateDTO<HubTeamResultQuota> dto);

    /**
     * 初始化
     * @param entity
     * @return
     */
    R<String> init(HubTeamResultQuota entity);
}
